package {
  import flash.display.Sprite;
  import flash.text.TextField;

  public class HelloWorld extends Sprite {

    public function HelloWorld() {

      var textField:TextField = new TextField();

      try
      {
	      textField.text = "YYY Hello, dworld!";
	      addChild(textField);

	      trace("XXX Hello, world!");

	      var snd:Sound = new Sound(new URLRequest("smallSound.mp3"));
	      snd.play();
      }
      catch
      {
	textField.text = "Error";
      }
    }
  }
}

